package com.jingdianjichi.subject.application.interceptor;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 注入Feign请求拦截器到IOC容器
 * @return:
 * @Author:  sky
 * @date:  2024/11/24 22:12
 */
@Configuration
public class FeignConfiguration {

    // 也可以在类上直接加注解@Component
    @Bean
    public FeignRequestInterceptor requestInterceptor(){
        return new FeignRequestInterceptor();
    }

}
